package com.woniuxy.threeprojcet.end_water_project_admin.controller;


import com.woniuxy.threeprojcet.end_water_project_admin.service.impl.EmployeeServiceImpl;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 员工表 前端控制器
 * </p>
 *
 * @author Lucas
 * @since 2021-08-26
 */
@RestController
@RequestMapping("/admin")
@CrossOrigin("*")
@Slf4j
public class EmployeeController {

    @Resource
    private EmployeeServiceImpl employeeService;
    @GetMapping("getEmployeeName")
    public List getEmployeeName(){
        List employeeName = employeeService.getEmployeeName();
        return employeeName;
    }

}

